cmake_minimum_required(VERSION 3.5)

set(TARGET_TEST_LINK_LIBS xlcomm_base xlcomm_net)

if(CMAKE_HOST_UNIX)
  set(TARGET_TEST_LINK_LIBS ${TARGET_TEST_LINK_LIBS} pthread)
endif()

set(MY_TEST_BIN
  timer2
  timer3
  timer4
  timer5
)
FOREACH(test ${MY_TEST_BIN})
  add_executable(${test} ${test}.cc)
  target_link_libraries(${test} ${TARGET_TEST_LINK_LIBS})
ENDFOREACH(test)